package org.mylitespring.beans.factory.support;

import static org.junit.Assert.assertNotNull;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.mylitespring.beans.factory.config.SingletonBeanRegistry;

public class DefaultSingletonBeanRegistry implements SingletonBeanRegistry{

	private final Map<String, Object> singletonObjects=new ConcurrentHashMap<String, Object>(64);
	
	
	public void registerSingleton(String beanName, Object singletonObject) {
		assertNotNull(beanName, " beanName must not be null");
		
		Object oldObject=this.singletonObjects.get(beanName);
	}

	public Object getSingleton(String beanName) {
		// TODO Auto-generated method stub
		return null;
	}

}
